<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>High School Portal - Forgot Password</title>
    </h:head>
    <h:body>
        <h:form>
            <h:panelGrid columns="2">
                <h:outputLabel for="type" value="Choose how to recive" />
                <h:selectOneMenu id="type" value="#{forgotBean.type}">
                    <f:selectItem itemValue="email" itemLabel="Email" />
                    <f:selectItem itemValue="sms" itemLabel="SMS" />
                </h:selectOneMenu>
                <h:outputLabel for="username" value="Username:" />
                <h:inputText id="username" value="#{forgotBean.username}" />
                <h:commandButton value="Send password" action="#{forgotBean.postListener}"/>
            </h:panelGrid>
        </h:form>
    </h:body>
</html>

